package com.twu.biblioteca;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by archoud on 3/5/14.
 */
public class Library {
    private Output output;
    private Input input;
    private List<Book> books = new ArrayList<Book>();

    public Library(ArrayList<Book> books, Input input, Output output) {
        this.output = output;
        this.input = input;
        this.books = books;
    }

    public void printBooks() {
        String header = "Books:";
        output.printList(header, books);
    }

    public void checkout() {
        int bookIndex = input.getUserChoice();
        books.remove(bookIndex);
    }
}
